<script>
let old_url = "https://www.mayibang.co/vtbk/index.html?from=aaa#/goodsdetail?num_iid=244";
let new_url = old_url.replace(/\?(.*)\#/,'#');
console.log(old_url);
console.log(new_url);
</script>
